#ifndef WRITEKNXCTRLCMD_H
#define WRITEKNXCTRLCMD_H

#include <QObject>


#include "Command/BaseCmd.h"
#include "Protocol/SWKNXProtocol.h"
class writeKNXCtrlCmd: public BaseCmd
{
         Q_OBJECT
     public:

        enum{FunctionCode = SWKNXProtocol::writeKnxCtl};

        Q_INVOKABLE explicit writeKNXCtrlCmd(QObject *parent = 0);

        Package toPackage();
        void unPackage(Package package);

        void setGroupAddress(quint16 groupAddress);
        void setKnxLen(quint8 len);
        void setDataList(QByteArray dataList);

        quint16 groupAddress();
        quint8 knxLen();
        QByteArray dataList();

      private:
        quint16 m_groupAddress;
        quint8 m_knxLen;
        QByteArray m_dataList;
};

#endif // WRITEKNXCTRLCMD_H
